<?php

return [
    'alipay' => [
        // 支付宝分配的 APPID
        'app_id' => env('ALI_APP_ID', '2021001160622166'),

        // 支付宝异步通知地址
        'notify_url' => 'http://beta.ling7.net/api/notify',

        // 支付成功后同步通知地址
        'return_url' => 'http://beta.ling7.net/api/notify',

        // 阿里公共密钥，验证签名时使用
        'ali_public_key' => app_path('../cert/ali/alipayCertPublicKey_RSA2.crt'),

        // 自己的私钥，签名时使用
        'private_key' => env('ALI_PRIVATE_KEY', 'MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQC8pUCY3gE3Le2qCqSIsDvGfJ9gzpu4ytOT6F2tZ9tlq1dEaWhXCf+aFkQObYLENDJLgVp6btMXNWzJ31g8OsQkZcz15Ii6x8DdklLbwq/QWL54IDI/V07SMzT/ZlCCEI5g1mdWHVRbR7zM4vJstp+LDkRgaVYomwJnnfLierXf24oSNhCi+EIXs0DPIQcMSf9NGyD95uI2nEM1RnOXipOl5+VeIC5vKhUjNgQtA6GrymZVVlK98bcnSnQLIgXvF8uRcyuThGEK36K/jtq98PeiM7UT/xMakDnpZ/8vCUw89DYsDG+PSBBynwgw9OE8MjB/2qXh0/olFwqixIdsvPg5AgMBAAECggEAFJS63XKrE0gRe9G5bag8fUUvZjJkTt7iAmsBfV+tUgRFexM87PIMTtVLC3/rGljPe+la46yfnxKXEdcqGzgWGhp5KAKM4EPWyNWj8JHm+IYWEakBkmOGF+y6RXr2IZqIzgvWLlD42RSUho3kAPRTp6ogz5vuaHOw6XkT/J2Cpi9velPKg6T7ZOKj/UVVMs2jrgiNNn/gjlyGJO0TISa8q+VAuu6qEDN4weuJ5KS66hiXjlSxvk/Ui43NLNccv/h4TwtSlMxAH4qonoE4XHB5Zl494pexra1VTuLLY8FzWWwWEFFKV1luUknT/Gz+FeIxG7FsLRVuKfvPhtDbL+dWAQKBgQDmHRfuFRRCVjB3qODqpzHKs8BJjisUd7WWtaeBfY32gry/qLQIHxvfPgRa4f8p+Fi8piYWX5OW3tNEIhHXnx2284+EHPRLLdPdhyw+F0BPX+I5VLKQyw62r1t1mToC63eb/eezXGj//S1seOKcsPTtoYsXwmPdbAAKQJmLdfsU4QKBgQDR3fFZf4PvXMGyvTmmPHZswHHa1gXhbfHl8rk5WAEhqW/ec6LSpKREdB0dyxpAmsG7xKl3VoGKpMGiPvuk220lLPndvOySCjPv23F5t+rzxpeB4C6jfN6ReA7kAcPccTq9rv14XNeOpI6HOt1nBxyk1TKO9sdJWyP66zZxBDN2WQKBgQDDpc7XzTJJaJCS3JJG0FrEVmpR379/CnzpI4/EyCRwiB3E8sIG+bQv7cG0J9xUKeQAmV9evGp25wNHNZRn+NBB4fmOwTNvzAoLmsciD5DNK9/jEME13H+pEZU4ekvZeaxbg9iBJjvcEr2RMYKy6L2GYUgqrktMUmwCS4SBD5Gn4QKBgAn3KAa/71vmY6xBIAOsy1LOsJlboFvcBKiOpgz7CNK4YP+HLiwidUpq2RcZFd4LezeXVxS7ntseh7NUmk5xvPUO9a550iH9KgoxuWm2OgnpXDhmlNBelZMCyHI7QzmshsWLEa4tem7jkYEKYokJ5WpOVWBEh6IMGeFIWgVz1Z3BAoGAEq/jExeWfaBDKbs4DqPsSatJmlKNvWHIC0kq7clkRm7F1kGb43LjItt6akxIKbt07rLHyRlH38dgWTdzyIaRn/n+xYEuJLJZXKoyeXn6gYri7azqfkRpa1h1tkAh1Wt3Ee6k3/oS/jdYjXcu9jWmwOCIJGoqPPE+GDu8VIRw2MY='),

        // 使用公钥证书模式，请配置下面两个参数，同时修改 ali_public_key 为以 .crt 结尾的支付宝公钥证书路径，如（./cert/alipayCertPublicKey_RSA2.crt）
        // 应用公钥证书路径
         'app_cert_public_key' => app_path('../cert/ali/appCertPublicKey.crt'),

        // 支付宝根证书路径
         'alipay_root_cert' => app_path('../cert/ali/alipayRootCert.crt'),

        // optional，默认 warning；日志路径为：sys_get_temp_dir().'/logs/yansongda.pay.log'
        'log' => [
            'file' => storage_path('logs/alipay.log'),
        //  'level' => 'debug'
        //  'type' => 'single', // optional, 可选 daily.
        //  'max_file' => 30,
        ],

        // optional，设置此参数，将进入沙箱模式
//         'mode' => 'dev',
    ],

    'wechat' => [
        // 公众号 APPID
        'app_id' => env('WECHAT_APP_ID', 'wxd130295f261d9fae'),

        // 小程序 APPID
        'miniapp_id' => env('WECHAT_MINIAPP_ID', 'wx18a08bef1acc63db'),

        // APP 引用的 appid
        'appid' => env('WECHAT_APPID', ''),

        // 微信支付分配的微信商户号
        'mch_id' => env('WECHAT_MCH_ID', '1592902221'),

        // 微信支付异步通知地址
        'notify_url' => 'https://mini.henjiyn.com/api/notify',

        // 微信支付签名秘钥
        'key' => env('WECHAT_KEY', 'be579f35635bf77f087c9f793bda5224'),

        // 客户端证书路径，退款、红包等需要用到。请填写绝对路径，linux 请确保权限问题。pem 格式。
        'cert_client' => app_path('../cert/wx/apiclient_cert.pem'),

        // 客户端秘钥路径，退款、红包等需要用到。请填写绝对路径，linux 请确保权限问题。pem 格式。
        'cert_key' => app_path('../cert/wx/apiclient_key.pem'),

        // optional，默认 warning；日志路径为：sys_get_temp_dir().'/logs/yansongda.pay.log'
        'log' => [
            'file' => storage_path('logs/wechat.log'),
        //  'level' => 'debug'
        //  'type' => 'single', // optional, 可选 daily.
        //  'max_file' => 30,
        ],

        // optional
        // 'dev' 时为沙箱模式
        // 'hk' 时为东南亚节点
        // 'mode' => 'dev',
    ],
];
